package com.yld.car.market;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.tencent.mm.sdk.openapi.IWXAPI;
import com.tencent.mm.sdk.openapi.WXAPIFactory;
import com.yld.car.common.ConstantUtils;

public class AppRegister extends BroadcastReceiver {

	public AppRegister() {
		System.out.println("AppRegister===>");
	}

	@Override
	public void onReceive(Context context, Intent intent) {
		// System.out.println("onRe===>");
		final IWXAPI api = WXAPIFactory.createWXAPI(context, null);

		System.out.println("onReceive=====>");
		//
		api.registerApp(ConstantUtils.APP_ID);
	}
}
